<template>
    AAAAAAAAAAAAAAAAA
    <button @click="bro">AAAAA</button>
</template>

<script setup lang='ts'>
import { getCurrentInstance, ref } from 'vue';

const instance = getCurrentInstance()

const flag = ref(false)

const bro = () => {
    flag.value = !flag.value
    instance?.proxy?.$Bus.emit('A:update',flag.value)
}

</script>

<style lang='scss' scoped>

</style>
